#ifndef __UTIL__
#define __UTIL__

#include <iostream>
#include <vector>
class Util
{
public:
	Util(void);
	~Util(void);
	
	//	adjust letters to uppercase
	static std::string toUpperCase(std::string str);	
	//	Check if a string is a number
	static bool isNumber(std::string str);	
	//	Check if a string is a literal
	static bool isLiteral(std::string str);
	//	Check if two strings are case insensitive equal
	static bool isEqual(std::string str1, std::string str2);
	//	Check if a declared function name is legal
	static bool isFuncNameLegal(std::string funcName);
	//	Check if a declared varable name is legal
	static bool isVarNameLegal(std::string varName);
	//	Check if a literal excluded
	static bool isLiteralExcluded(std::string name, std::vector<std::string>& names);
};

#endif